const db = require('../../../libs/db.config');

module.exports = async (data) => {
    const postID = data;
    const searchSQL = 'delete FROM forum WHERE postID = ?';
    return await db.query(searchSQL, [postID]);
};
